package com.shenmazong.servertalklogin.service;

import com.shenmazong.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 田不平
 * @project demo-easytalk
 * @date 2020/9/15 5:28 PM
 * http://www.shenmazong.com
 */

@FeignClient(value = "server-talk-admin")
@Component(value = "iAdminService")
public interface IAdminService {

    @PostMapping(value = "/doAdminLogin")
    public ResponseResult doAdminLogin(@RequestParam("userName") String userName,
                                       @RequestParam("userPass") String userPass);
    @PostMapping(value = "/doTeacherLogin")
    public ResponseResult doTeacherLogin(@RequestParam("userName") String userName,
                                         @RequestParam("passWord") String passWord);
    @PostMapping("/doStudentLogin")
    public ResponseResult doStudentLogin(@RequestParam("studentName") String studentName,
                                         @RequestParam("studentPass") String studentPass);
    @PostMapping("/doSellerLogin")
    public ResponseResult doSellerLogin(@RequestParam("userName") String userName,
                                        @RequestParam("passWord") String passWord
    );
}
